package com.qidian.mespro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.Workflow;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public interface WorkflowService {
    Result<PageInfo<Workflow>> WorkflowList(Workflow workflow, int pageNum, int pageSize);

    Result<Workflow> addWorkflow(Workflow workflow);

    Result<Workflow> selectWorkflowByCode(String code);

    Result updateWorkflowById(Workflow workflow);

    Result deleteWorkflowById(Long id);

    Result batchDelete(Long[] ids);

    Result<List<Workflow>> selectListByMaterialCode(String code);
}
